<%-- 
    Document   : tab_pannel
    Created on : Dec 4, 2011, 4:19:35 PM
    Author     : BlueZky
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript" src="js/input_handler.js"></script>
<link rel="stylesheet" type="text/css" href="styles/userstyles.css"/>
<link rel="stylesheet" type="text/css" href="styles/styles.css"/>

<!DOCTYPE html>

<div class="content">
    <div class="partion">
        <div id="menu-bar">
            <c:choose >
                <c:when test="${tag eq 'giohang' && nguoiDung ne null}">
                    <div class="inner">
                        <div class="bar-active"><a href="giohang.htm">Giỏ hàng</a></div>
                        <div class="bar-space"></div>
                        <div class="bar-noactive" ><a href="taikhoan.htm">Tài khoản</a></div>
                        <div class="bar-space"></div>
                        <div class="bar-noactive"><a href="lichsumuahang.htm">Lịch sử mua hàng</a></div>
                    </div>
                </c:when>
                <c:when test="${(tag eq 'taikhoan' or tag eq 'uchinhsua' or tag eq 'doiMatKhau') && nguoiDung ne null}">
                    <div class="inner">
                        <div class="bar-noactive"><a href="giohang.htm">Giỏ hàng</a></div>
                        <div class="bar-space"></div>
                        <div class="bar-active" ><a href="taikhoan.htm">Tài khoản</a></div>
                        <div class="bar-space"></div>
                        <div class="bar-noactive"><a href="lichsumuahang.htm">Lịch sử mua hàng</a></div>
                    </div>
                </c:when>
                <c:otherwise >
                    <c:if test="${nguoiDung ne null}">
                        <div class="inner">
                            <div class="bar-noactive"><a href="giohang.htm">Giỏ hàng</a></div>
                            <div class="bar-space"></div>
                            <div class="bar-noactive" ><a href="taikhoan.htm">Tài khoản</a></div>
                            <div class="bar-space"></div>
                            <div class="bar-active"><a href="lichsumuahang.htm">Lịch sử mua hàng</a></div>
                        </div>
                    </c:if>
                </c:otherwise>
            </c:choose>
        </div>
        <div class="ucontent">
            <c:choose>
                <c:when test="${tag eq 'giohang' }">
                    <jsp:include page="giohang.jsp"></jsp:include>
                </c:when>
                <c:when test="${tag eq 'taikhoan' && nguoiDung ne null}">
                    <jsp:include page="taikhoan.jsp"></jsp:include>
                </c:when>
                <c:when test="${tag eq 'lichsu' && nguoiDung ne null}">
                    <jsp:include page="lichsumuahang.jsp"></jsp:include>
                </c:when>
                <c:when test="${tag eq 'lchitiet' && nguoiDung ne null}">
                    <jsp:include page="chitietlichsu.jsp"></jsp:include>
                </c:when>
                <c:when test="${tag eq 'lchinhsua' && nguoiDung ne null}">
                    <jsp:include page="chinhsualichsu.jsp"></jsp:include>
                </c:when>
                <c:when test="${tag eq 'uchinhsua' && nguoiDung ne null}">
                    <jsp:include page="chinhsuathongtin.jsp"></jsp:include>
                </c:when>
                <c:when test="${tag eq 'doiMatKhau' && nguoiDung ne null}">
                    <jsp:include page="suamatkhau.jsp"></jsp:include>
                </c:when>
            </c:choose>
        </div>
    </div>
</div>